<extend name="./public/frame.html"/>
<block name="content">

    <form class="layui-form" action="/admin/system/version_add" method="post">
        <input type="hidden" name="id" value="{$data.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">版本名称</label>
            <div class="layui-input-block">
                <input type="text" name="version_name" required lay-verify="required" placeholder="请输入标题" autocomplete="off"
                       class="layui-input" value="{$data.version_name}">
            </div>
        </div>
  
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">内容简介</label>
            <div class="layui-input-block">
                <textarea name="content" placeholder="请输入内容" class="layui-textarea">{$data.content}</textarea>
            </div>
        </div>
      
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" type="submit">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>

    <script>
        //Demo
        layui.use('form', function () {
            var form = layui.form;
        });
    </script>
</block>
